#ifndef aTcpServer_H
#define aTcpServer_H

#include <QTcpServer>
#include "tcpclientsocket.h"

class aTcpServer : public QTcpServer
{
    Q_OBJECT
public:
    explicit aTcpServer(QObject *parent = 0);
    ~aTcpServer();
    //指针指向最近一次与server连接的socket。
    //为了给对象的父对象weatherstation访问该socket提供方便
    tcpClientSocket *socketSend;
    int numOfConnection;

private:
    void incomingConnection(int socketId);

signals:
    void sigErrorInfo(QString errorStr);


public slots:

};

#endif // aTcpServer_H
